package qq.activity;

import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import cn.imu.appdevexperiment2022.R;


public class ButterKnifeTestActivity extends AppCompatActivity {

   int i=0;

   private static final String TAG="ButterKnifeTestActivity";
   @BindView(R.id.tv_butterknifetest)TextView TvBK;
   @Override
   protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.cch_activity_butterknifetest);
      ButterKnife.bind(this);


      Log.i(TAG,TvBK.getText().toString());




   }
   @OnClick(R.id.btn_bk)
   public void btnBk(){
      TvBK.setText("测试成功");
      i++;
      ToastUtil.ShowToast(ButterKnifeTestActivity.this,"toasttest"+i);
   }
}
